time = [(1, '0分钟'), (2, '50分钟'), (3, '100分钟'), (4, '300分钟'), (5, '不限量')]
size = [(1, '0M'), (2, '500M'), (3, '1G'), (4, '5G'), (5, '不限量')]
message = [(1, '0条'), (2, '80条'), (3, '100条')]

point = '.'
print('定制自己的手机套餐: ')
print('A. 请设置通话时长: ')
for x in time:
    print(str(x[0])+point, x[1])

option1 = int(input('输入选择的通话时长编号: '))-1

print('\nB. 请设置流量包: ')
for x in size:
    print(str(x[0])+point, x[1])

option2 = int(input('输入选择的流量包编号: '))-1

print('\nC. 请设置短信条数: ')
for x in message:
    print(str(x[0])+point, x[1])

option3 = int(input('输入选择的短信条数编号: '))-1

selection1 = time[option1][1]
selection2 = size[option2][1]
selection3 = message[option3][1]
result = '您的手机套餐定制成功: 免费通话时长为' + selection1 + \
    '/月，流量为' + selection2 + '/月，短信条数' + selection3 + '/月'
print(result)
